﻿<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [
  <!ENTITY copy "&#169;">
  <!ENTITY nbsp "&#160;">
  <!ENTITY laquo "&#171;">
  <!ENTITY raquo "&#187;">
]>
<xsl:stylesheet xmlns="http://www.w3.org/1999/xhtml"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version="1.0">


  <xsl:include href="../layout.xsl"/>
  <xsl:include href="../pager.xsl"/>

  <xsl:template match="/">
    <xsl:apply-templates />
  </xsl:template>

  <xsl:template match="content">
    <h1>
      <xsl:value-of select="$Static/title"/>
    </h1>

    <ul class="articles">
      <xsl:for-each select="$Main/list/data/row">
        <li>
          <div class="avatar">
            <xsl:if test="file_name != ''">
            <img src="{$Files}{path}{id}avatar{file_name}" alt="{title}" title="{title}"/>
            </xsl:if>
          </div>
          <div class="text">
            <p class="title">
              <a href="/{$Controller}/{idt}">
                <xsl:value-of select="title"/>
              </a>
            </p>
            <div class="desc">
              <xsl:value-of select="desc" disable-output-escaping="yes"/>
            </div>
          </div>
        </li>
      </xsl:for-each>

    </ul>

  </xsl:template>
</xsl:stylesheet>